package cn.dankal.basiclib.base;

import androidx.annotation.NonNull;

/**
 * description: Presenter 基类
 *
 * @author vane
 * @since 2018/2/1
 */

public class BasePresenterImp<T extends BaseView> implements BasePresenter<T> {

    protected T mView;

    @Override
    public void attachView(@NonNull T baseView) {
        mView = baseView;
    }

    @Override
    public void detachView() {
        if (mView != null) mView = null;
    }
}
